<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="language" content="vi" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        
	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css"/>
        <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.min.css" />
        <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap-responsive.min.css" />
        <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/fullcalendar.css" />	
        <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/unicorn.main.css" />
        <link rel="stylesheet" href="<?php echo Yii::app()->request->baseUrl; ?>/css/unicorn.grey.css" class="skin-color" />
                
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/excanvas.min.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.ui.custom.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/bootstrap.min.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.flot.min.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.flot.resize.min.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.peity.min.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/fullcalendar.min.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/unicorn.js"></script>
        <script src="<?php echo Yii::app()->request->baseUrl; ?>/js/unicorn.dashboard.js"></script>
        
</head>

<body onload="downLoad()">

<div id="loading" class="layer1_class">
      Please wait while this page is loading...
</div>
<div class="_container" id="page">
	<!-- <script type="text/javascript">
    	alert('Just holding things up here.  While you are reading this, the body of the page is not loading and the onload event is being delayed');
        </script> -->
        <section id="toolbar">
            <div class="container_12">
                <div class="tool-left">
                    <ul class="breadcrumb">
                    <?php if(isset($this->breadcrumbs)):?>
                            <?php $this->widget('zii.widgets.CBreadcrumbs', array(
                                    'links'=>$this->breadcrumbs,
                                    'htmlOptions'=>array('class'=>''),
                                    'activeLinkTemplate'=>'<li><a href="{url}">{label}</a></li>', // will generate the clickable breadcrumb links 
                                    'inactiveLinkTemplate'=>'<li>{label}</li>', // will generate the current page url
                                    'tagName'=>'li',
                                    'separator'=>'<li class="bc-separator">>></li>',
                            )); ?><!-- breadcrumbs -->
                    <?php endif?>
                    </ul>
                </div>
                <div class="tool-right">
                    <ul> 
                        <li>
                            <a href="pages_profile.html">
                                <span class="icon i14_admin-user"></span>Profile
                            </a>
                        </li>
                        <li>
                            <a href="pages_profile.html">
                                <span class="icon i14_admin-user"></span>Profile
                            </a>
                        </li>
                        <li>
                            <a href="pages_profile.html">
                                <span class="icon i14_admin-user"></span>Profile
                            </a>
                        </li>
                    </ul> 
                </div>
            </div>
        </section>
        <header>
            <div class="container_12" style="position: relative;padding-top:30px;">
                <div class="logo">
                    <?php echo CHtml::link('<h3 class="text-logo">'.CHtml::encode(Yii::app()->name).'</h3>',array('/admin')); ?>
                </div>
                <div class="buttons"> 
                    <a href="statistics"> 
                        <span class="icon icon-sitemap"></span> Statistics
                    </a> 
                    <a href="forms"> 
                        <span class="icon icon-list-alt"></span> Forms 
                    </a> 
                    <a href="tables_dynamic"> <span class="icon icon-table"></span> Tables 
                    </a> 
                </div> 
            </div>
        </header>
        
        <div id="main" class="container_12 clearfix">
            <section class="toolbar">
                <div class="user"> 
                    <div class="avatar"> 
                        <img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/toolbar/avatar.png"> 
                    </div> 
                    
                </div>
                <ul class="shortcuts">
                    <li>
                        <a href="#" id="test">
                            <span class="icon i24_user-business"></span>
                        </a>
                        
                    </li>
                    <li>
                        <a href="#">
                            <span class="icon i24_user-business"></span>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span class="icon i24_user-business"></span>
                        </a>
                    </li>
                </ul>
            </section>
            <aside style="min-height: 641px;">
                <div class="top">
                    <nav>
                        <div id="mainmenu">
                                <?php $this->widget('zii.widgets.CMenu',array(
                                        'activeCssClass'=>'current',
                                        'encodeLabel'=>false,
                                        'items'=>array(
                                                array('label'=>'<img src="'.Yii::app()->theme->baseUrl.'/images/icon/dashboard.png"/>Dashboard (only admin)',
                                                'url'=>array('/admin/index'),'visible'=>Yii::app()->user->checkAccess('admin')),
                                                array('label'=>'Quản Lý Trường', 'url'=>array(Yii::app()->user->checkAccess('admin')?'/truong/admin':'/truong/admin')),
                                                array('label'=>'Quản lý Lớp theo Khóa', 'url'=>array('/dslop/admin')),
                                                array('label'=>'Quản lý Môn học theo Khối', 'url'=>array('/dsmonhoc/admin')),
                                                array('label'=>'Quản lý Danh sách loại điểm', 'url'=>array('/dsloaidiem/admin')),
                                                array('label'=>'Login', 'url'=>array('/admin/login'), 'visible'=>Yii::app()->user->isGuest),
                                                array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/login/logout'), 'visible'=>!Yii::app()->user->isGuest)
                                        ),
                                )); ?>
                        </div><!-- mainmenu -->
                    </nav>
                </div>
            </aside>
            <section id="content" class="container_12 clearfix">
                <?php echo $content; ?>
            </section>
            <div class="clear"></div>
        </div>
	<footer id="footer" class="container_12">
                <span class="grid_6"> Copyright &copy; <?php echo date('Y'); ?> by <a href="http://tatonline.vn">TATONLINE Company</a>. </span>
	</footer><!-- footer -->

</div><!-- page -->


</body>
</html>
